﻿using System;
using System.IO;

namespace Accountant.DataModel
{
  public static class BinaryWriterExt
  {
    public static void Write(this BinaryWriter writer, DateTime value)
    {
      writer.Write(value.Ticks);
    }
    public static void WriteString(this BinaryWriter writer, string value)
    {
      writer.Write(value ?? "");
    }
  }
}